/**
 * UserDao.java
 * Created at 2017-07-06
 * Created by Jackie liu
 * Copyright (C) 2014, All rights reserved.
 */
package com.huabo.dao.inter;

import com.huabo.base.BaseDao;
import com.huabo.model.User;
import com.huabo.utils.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>ClassName: UserDao</p>
 * <p>Description: 用户管理Dao</p>
 * <p>Author: Jackie liu</p>
 * <p>Date: 2017-07-06</p>
 */
public interface UserDao extends BaseDao<User, Long> {

    public List<User> queryByAccount(String account);

    public List<User> queryByRoleId(Long roleId);
    
    public boolean isDuplicateName(Long id, Long orgId, String name);

    public boolean isDuplicatePoliceNo(Long id, String policeNo);

    public boolean isDuplicateIdCard(Long id, String idCard);

    public Page<User> queryPage(Map<String, Object> params);

    public int modifyState(Long[] ids, int state);

	public List<User> queryByOrgId(Long orgId);
	
	public User queryById(Long id);

    public int modifyPass(Long[] ids, String pass);
}